CFLAG = -I../mqthird/include																			#编译选项
LFLAG = -L../mqthird/lib -lgtest -lprotobuf -lsqlite3 -pthread  -lmuduo_net -lmuduo_base -lz 					#链接选项

all: consumer_client publish_client 
publish_client: publish_client.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++17 $(CFLAG) $^ -o $@ $(LFLAG)
consumer_client: consumer_client.cc ../mqcommon/mq_msg.pb.cc ../mqcommon/mq_proto.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++17 $(CFLAG) $^ -o $@ $(LFLAG)

.PHONY:clean
clean: 
	rm -rf publish_client consumer_client